// with polyfills
// import 'core-js/stable'
import 'regenerator-runtime/runtime'
import "./config";

import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import Storage from "vue-ls";
import config from "@/defaultSettings";
import './core/lazy_use'

import { VueAxios } from "@/utils/request";

import { VueXMixin } from '@/mixins/vuex/index.js'
import Video from "video.js";
import BaiduMap from "vue-baidu-map";
import { encrypt, encryptObj, decrypt, decryptObj } from "@/utils/encryption/parameters-helper.js";

import '@/components/htxincailiao/index.js'
import '@/components/jeecg/index.js'
import '@/components/dict/index.js'

//样式注意加载顺序
import 'ant-design-vue/dist/antd.less' // or 'ant-design-vue/dist/antd.less'
import '@/css/global.less' /*引入公共样式*/
import 'video.js/dist/video-js.css'

import "@/permission"
import "@/seo-injection"


Vue.config.productionTip = false;

Vue.prototype.$video = Video;
Vue.prototype.$fileBaseURL = Vue.prototype.API_BASE_URL;
Vue.prototype.$fileUploadAPI = "api/sys/common/upload";

Vue.prototype.$encryptObj = encryptObj;
Vue.prototype.$decryptObj = decryptObj;
Vue.prototype.$encrypt = encrypt;
Vue.prototype.$decrypt = decrypt;


Vue.use(BaiduMap, {
  ak: "gYVueMmshDv2jW0kLrRm5lB4R2f607ZG", //这个地方是官方提供的ak密钥
});

Vue.mixin(VueXMixin);
Vue.use(Storage, config.storageOptions);
Vue.use(VueAxios);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
